import Vue from 'vue'
import Router from 'vue-router'
//import Hello from '@/components/Hello'
import Home from '@/components/Home'
// 商城首页
import HomeIndex from '@/components/View/Index'
// 商品详情
import HomeOrderInfo from '@/components/View/OrderInfo'
// 商品列表
import HomeProductList from '@/components/Sub/ProductList'
// 商品分类
import HomeProductClassify from '@/components/View/ProductClassify'
// 商品详情
import HomeProductDetail from '@/components/View/ProductDetail'
// 个人中心
import HomeMine from '@/components/View/Mine'
// 订单中心
import HomeOrder from '@/components/View/Order'
// 购物车
import HomeCart from '@/components/View/Cart'
// 未登录
import NotLogin from '@/components/View/NotLogin'
// 商家
import Store from '@/components/View/Store'
//登录
import Login from '@/components/View/Login'
//注册
import Register from '@/components/View/Register'
//忘记密码
import Forget from '@/components/View/Forget'
// VIP等级
import Vip from '@/components/View/Vip'
//收货地址管理
import Address from '@/components/View/Address'
// 确认收货
import RightOrder from '@/components/View/RightOrder'
// 新增收货地址
import Add_address from '@/components/View/Add_address'
//修改密码
import RevisePassword from '@/components/View/RevisePassword'
//新闻公告
import News from '@/components/View/News'
// 新闻公告详情
import NewsInfo from '@/components/View/NewsInfo'
// 余额提现
import Reflect from '@/components/View/Reflect'
//评价
import OrderEvaluation from '@/components/View/OrderEvaluation'
Vue.use(Router)

export default new Router({
	routes: [{
		path: '/',
		name: 'Home',
		component: Home,
		children: [{
			path: 'index',
			name: 'index',
			component: HomeIndex
		}, {
			path: 'order_info',
			name: 'order_info',
			component: HomeOrderInfo
		}, {
			path: 'product_classify',
			name: 'product_classify',
			component: HomeProductClassify
		}, {
			path: 'product_list',
			name: 'product_list',
			component: HomeProductList
		}, {
			path: 'product_detail',
			name: 'product_detail',
			component: HomeProductDetail
		}, {
			path: 'mine',
			name: 'mine',
			component: HomeMine
		}, {
			path: 'cart',
			name: 'cart',
			component: HomeCart
		}, {
			path: 'order',
			name: 'order',
			component: HomeOrder
		}, {
			path: 'store',
			name: 'store',
			component: Store
		}, {
			path: 'not_login',
			name: 'not_login',
			component: NotLogin
		}, {
			path: 'login',
			name: 'login',
			component: Login
		}, {
			path: 'register',
			name: 'register',
			component: Register
		}, {
			path: 'forgot',
			name: 'forgot',
			component: Forget
		}, {
			path: 'vip',
			name: 'vip',
			component: Vip
		}, {
			path: 'address',
			name: 'address',
			component: Address
		}, {
			path: 'right_order',
			name: 'right_order',
			component: RightOrder
		}, {
			path: 'add_address',
			name: 'add_address',
			component: Add_address
		}, {
			path: 'revise_password',
			name: 'revise_password',
			component: RevisePassword
		}, {
			path: 'news',
			name: 'news',
			component: News
		}, {
			path: 'news_info',
			name: 'news_info',
			component: NewsInfo
		}, {
			path: 'reflect',
			name: 'reflect',
			component: Reflect
		}, {
			path: 'order_evaluation',
			name: 'order_evaluation',
			component: OrderEvaluation
		}]
	}]
})